﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.IO;
using curbside.SqlHelper;

namespace TestConsoleApplication
{
    public class GlobalSettings
    {

        public static string ApplicationPath
        {
            get
            {
                return System.AppDomain.CurrentDomain.BaseDirectory;
            }
        }

        public static string DownloadDir
        {
            get
            {
                string dir = Path.Combine(ApplicationPath, ConfigurationManager.AppSettings["downloadDir"]);
                if (!Directory.Exists(dir))
                {
                    Directory.CreateDirectory(dir);
                }

                return dir;
            }
        }
    }
}
